<![CDATA[<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Generate Placeholder Images</title>
</head>
<body>
    <canvas id="canvas" width="100" height="100" style="border:1px solid #000000;"></canvas>
    <br>
    <button onclick="downloadImage()">Download Image</button>

    <script>
        const canvas = document.getElementById('canvas');
        const ctx = canvas.getContext('2d');

        // 填充背景
        ctx.fillStyle = '#cccccc';
        ctx.fillRect(0, 0, canvas.width, canvas.height);

        // 绘制文字
        ctx.fillStyle = '#000000';
        ctx.font = '14px Arial';
        ctx.textAlign = 'center';
        ctx.fillText('Placeholder', canvas.width / 2, canvas.height / 2);

        function downloadImage() {
            const link = document.createElement('a');
            link.download = 'placeholder.png';
            link.href = canvas.toDataURL();
            link.click();
        }
    </script>
</body>
</html>]]>